package mn.idax.exchange.otc.coder;

import com.alibaba.fastjson.JSON;
import org.atmosphere.cpr.Serializer;

import java.io.IOException;
import java.io.OutputStream;

public class JsonSerializer implements Serializer {

    @Override
    public void write(OutputStream os, Object o) throws IOException {
        os.write(JSON.toJSONBytes(o));
    }
}
